<template>
	<view class="content">
		<view style="text-align: center; font-size: 13px; font-weight: bold; margin-top: 8px;">{{noticeObj.noticeTitle}}</view>
		<view style="margin-top: 8px;"></view>
		<u-parse :content="noticeObj.noticeContent" ></u-parse>
	</view>
</template>

<script>
	import {getByNoticeId} from '@/api/notice.js'
 	export default{
		onLoad(options) {
			this.noticeId=options.noticeId;
			this.loadNoticeById();
		},
		
		data(){
			return {
				noticeId:undefined,
				noticeObj:{}
			}
		},
		methods:{

			loadNoticeById(){
				let that=this;
				getByNoticeId({id:this.noticeId}).then(res=>{
					that.noticeObj=res.data;
				});
			}
		}
		
	}
</script>

<style>
</style>